

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'sensors-form',
	'enableAjaxValidation'=>false,
	'htmlOptions'=>array(
		'class' => 'form',
	),
)); ?>
<fieldset class="grey inline">
	<legend><?php echo Controller::getActionName($this->action->id); ?></legend>
	
	<div class="notification tip" style="display: block; "> 
    <span class="strong">Tip:</span> <?php echo $form->errorSummary($model); ?>
 <span class="close" title="Dismiss"></span>
    </div>
    <div class = "row">
	<label>
		<?php echo $form->labelEx($model,'SENSORNAME_V'); ?>
		<?php echo $form->textField($model,'SENSORNAME_V',array('size'=>60,'maxlength'=>255)); ?>
		<?php //echo $form->error($model,'SENSORNAME_V'); ?>
	</label>
	</div>
    <div class = "row">
	<label>
		<?php echo $form->labelEx($model,'GROUPNAME_V'); ?>
		<?php echo CHtml::dropDownList('BtBatterys[RECORD_ID]','', CHtml::listData($batterys, 'RECORD_ID', 'GROUPNAME_V'));
		?>
	</label>
	</div>
    <div class = "row">
	<label>
		<?php echo $form->labelEx($model,'BASENAME_V'); ?>
		<?php echo CHtml::dropDownList('MtsysBase[BASE_ID]','', CHtml::listData($bases, 'BASE_ID', 'BASE_NAME'));
		?>
	</label>
	</div>
    <div class = "row">	


    <div class = "row">
	<label>
		<?php echo $form->labelEx($model,'SENSOR_SETUP_NAME_V'); ?>
		<?php echo $form->textField($model,'SENSOR_SETUP_NAME_V',array('size'=>60,'maxlength'=>255)); ?>
		<?php //echo $form->error($model,'SENSOR_SETUP_NAME_V'); ?>
	</label>
	</div>
    <div class = "row">
	<label>
		<?php echo $form->labelEx($model,'SENSOR_N'); ?>
		<?php echo $form->textField($model,'SENSOR_N'); ?>
		<?php //echo $form->error($model,'SENSOR_N'); ?>
	</label>
	</div>
    <div class = "row">
	<label>
		<?php echo $form->labelEx($model,'BATTERYNUM_N'); ?>
		<?php echo $form->textField($model,'BATTERYNUM_N'); ?>
		<?php //echo $form->error($model,'BATTERYNUM_N'); ?>
	</label>
	</div>
    <div class = "row">
	<label>
		<?php echo $form->labelEx($model,'SENSOR_ADDR_N'); ?>
		<?php echo $form->textField($model,'SENSOR_ADDR_N'); ?>
		<?php //echo $form->error($model,'SENSOR_ADDR_N'); ?>
	</label>
	</div>
    <div class = "row">
	<label>
		<?php echo $form->labelEx($model,'COM_N'); ?>
		<?php echo $form->textField($model,'COM_N'); ?>
		<?php //echo $form->error($model,'COM_N'); ?>
	</label>
	</div>
    <div class = "row">
	<label>
		<?php echo $form->labelEx($model,'IP_V'); ?>
		<?php echo $form->textField($model,'IP_V',array('size'=>60,'maxlength'=>255)); ?>
		<?php //echo $form->error($model,'IP_V'); ?>
	</label>
	</div>
    <div class = "row">
	<label>
		<?php echo $form->labelEx($model,'SETUP_D'); ?>
		<?php
			$this->widget('zii.widgets.jui.CJuiDatePicker', array(
				'model'=>$model,
				'attribute'=>'SETUP_D',
			    'options'=>array(
			        'showAnim'=>'fold',
					'dateFormat'=>'yy-mm-dd'
			    ),
			    'htmlOptions'=>array(
			        'style'=>'height:15px;'
			    ),
				'language'=>'ZH-CN'
			));
		?>
		<?php //echo $form->error($model,'SETUP_D'); ?>
	</label>
	</div>
    <div class = "row">
	<label>
		<?php echo $form->labelEx($model,'REMARK_V'); ?>
		<?php echo $form->textField($model,'REMARK_V',array('size'=>60,'maxlength'=>255)); ?>
		<?php //echo $form->error($model,'REMARK_V'); ?>
	</label>
	</div>

	<?php echo CHtml::submitButton($model->isNewRecord ? '创建' : '保存',array('class'=>'button blue')); ?>
</fieldset>
<?php $this->endWidget(); ?>

